package com.game;

/**
 * 牌
 */
public class Card {

    private Integer id;//1-52 (无大小王)
    private Integer order;//index1二维数组第一位（代表大小）
    private Integer shape;//index2二维数值第二位（代表形状-花色）黑红梅方

    public Card(Integer id) {
        this.id = id;
        if(id>48){
            this.order = id/4 + 1;//如果是2，独一档，不能和A接顺
        }else {
            this.order = id/4;
        }

        this.shape = id%4;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public Integer getShape() {
        return shape;
    }

    public void setShape(Integer shape) {
        this.shape = shape;
    }
}
